<template>
  <div>
    <button @click="get_response">访问一下 django的 index地址</button>
  </div>
</template>

<script>
  export default {
    name: "test",
    methods: {
      get_response() {
        this.axios.get('http://127.0.0.1:8000/index/').then(response => {
          // 处理response的流程
          alert(response.data)
        })
      }
    }
  }
</script>

<style scoped>

</style>
